﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Emptiness.Screens;
using FlatRedBall.Input;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Emptiness.Utils;

namespace Emptiness.Screens
{
    public class SplashScreen : Screen
    {
        private Song song;
        // If not loading any .scnx file, the first argument is ""
        public SplashScreen()
            : base("Assets/Scenes/splashScreen.scnx", "SplashScreen")
        {
            MusicUtil.GetMusicUtil().Play("bg2");
        }

        public override void Activity(bool firstTimeCalled)
        {
            base.Activity(firstTimeCalled);

            if (InputManager.Keyboard.KeyReleased(Keys.Space))
            {
                IsActivityFinished = true;
                NextScreen = "Emptiness.Screens.MenuScreen";
            }
        }

    }
}
